package com.neusoft.tijiancms.mapper;

import com.neusoft.tijiancms.po.Cidetailedreport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CidetailedreportMapper {
    /**
     *根据订单的Id查询体检明细
     * @param cidetailedreport
     * @return
     */
    @Select("SELECT * FROM cidetailedreport WHERE orderId=#{orderId} and ciId=#{ciId} order by cidrId")
    public List<Cidetailedreport>getCidetailedreportById(Cidetailedreport cidetailedreport);

    /**
     * 向体检明细表中批量添加数据
     * @param list
     * @return
     */
    public Integer insertCidetailedreport(List<Cidetailedreport> list);

    /**
     * 更新明细数据
     * @param list
     * @return
     */
    public  int updateCidetailedreport(List<Cidetailedreport> list);
}
